package dya318.graphics;
//圆形
public class Circle extends Graphics{
    private double r;

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public double calculated(){
        super.patting();
        double area =0;
        area = 3.14*getR()*getR();
        return area;
    }

}
